all:
	@go build -o ./build/bin/miner-proxy ./cmd/miner-proxy
	# @ln -s ./build/bin/miner-proxy /usr/bin/miner-proxy

#client-start:
#	@nohup ./build/bin/miner-proxy -l 0.0.0.0:8889 -pname proxy01eth -r node3-e.ufssue.com:8889 -secret_key 2022@shakespeare -client -sc >> miner_eth.log 2>&1 &
#	@nohup ./build/bin/miner-proxy -l 0.0.0.0:9999 -pname proxy01btc -r node3-e.ufssue.com:9999 -secret_key 2022@shakespeare -client -sc >> miner_btc.log 2>&1 &

server-start:
	@nohup ./build/bin/miner-proxy -l 0.0.0.0:8889 -r eth.f2pool.com:6688 -secret_key 2022@shakespeare  -sc >> miner_eth.log 2>&1 &
	@nohup ./build/bin/miner-proxy -l 0.0.0.0:9999 -r btc.f2pool.com:3333 -secret_key 2022@shakespeare  -sc >> miner_btc.log 2>&1 &


